export const constanRoute = [
  {
    // 初始页重定向
    path: '/',
    redirect: '/login',
    meta: {
      title: 'redirect',
      hidden: true
    }
  },
  {
    // 登录
    path: '/login',
    component: () => import('~/views/Login/Login.vue'),
    name: 'login',
    meta: {
      title: '登录',
      hidden: false
    }
  },
  {
    // 首页
    path: '/index',
    component: () => import('~/layout/Layout.vue'),
    name: 'index',
    meta: {
      title: 'index',
      hidden: false
    },
    children: [
      {
        path: '/home',
        component: () => import('~/views/Home/Home.vue'),
        meta: {
          title: '首页',
          hidden: false,
          icon: 'View'
        }
      },
      {
        path: '/tags',
        component: () => import('~/views/Tags/Tags.vue'),
        meta: {
          title: '标签',
          hidden: false,
          icon: 'View'
        }
      },
      {
        path: '/note',
        component: () => import('~/views/Note/Note.vue'),
        meta: {
          title: '笔记',
          hidden: false,
          icon: 'View'
        }
      },
      {
        path: '/planet',
        component: () => import('~/views/Plane/Plane.vue'),
        meta: {
          title: '逛逛',
          hidden: false,
          icon: 'View'
        }
      },
      {
        path: '/recommend',
        component: () => import('~/views/Recommend/Recommend.vue'),
        meta: {
          title: '推荐',
          hidden: false,
          icon: 'View'
        }
      },
      {
        path: '/recommend/detail',
        component: () => import('~/views/Recommend/list.vue'),
        meta: {
          title: '推荐',
          hidden: false,
          icon: 'View'
        }
      },
      {
        path: '/myAccount',
        component: () => import('~/views/MyAccount/MyAccount.vue'),
        name: '我的账户',
        meta: {
          title: '我的账户'
        }
      },
      {
        path: '/setting',
        component: () => import('~/views/Setting/Setting.vue'),
        name: '设置',
        meta: {
          title: '设置'
        }
      },
      {
        path: '/adminHome',
        component: () => import('~/views/Home/adminHome.vue'),
        name: '首页',
        meta: {
          title: '首页'
        }
      },
      {
        path: '/bookmarks_manage',
        component: () => import('~/views/Admin/bookmarksManage.vue'),
        name: '书签管理',
        meta: {
          title: '书签管理'
        }
      },
      {
        path: '/commend_manage',
        component: () => import('~/views/Admin/commendManage.vue'),
        name: '评论管理',
        meta: {
          title: '评论管理'
        }
      },
      {
        path: '/user_manage',
        component: () => import('~/views/Admin/userManage.vue'),
        name: '用户管理',
        meta: {
          title: '用户管理'
        }
      },
      {
        path: '/log_manage',
        component: () => import('~/views/Admin/logManage.vue'),
        name: '日志管理',
        meta: {
          title: '日志管理'
        }
      },
    ]
  }
]
